package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.EcologyPoolFlowTypeEnum;
import com.sc.nft.enums.EcologyPoolLinkTypeEnum;
import com.sc.nft.enums.EcologyPoolOperationTypeEnum;
import com.sc.nft.enums.EcologyPoolTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 刘国航
 * @since 2024/7/15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_ecology_pool_record")
public class EcologyPoolRecord extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1272440884379348227L;
    /**
     * 数量
     */
    private BigDecimal linkCount;

    /**
     * 物质类型
     */
    private EcologyPoolLinkTypeEnum linkType;

    /**
     * 变化前数量
     */
    private BigDecimal beforeLinkCount;

    /**
     * 变化后数量
     */
    private BigDecimal afterLinkCount;

    /**
     * 是否增加
     */
    private Boolean isAdd;

    /**
     * 主动操作方品牌id
     */
    private Long daoId;

    /**
     * 主动操作方用户id
     */
    private Long userId;

    /**
     * 主动操作方关联id
     */
    private Long relationId;

    /**
     * 主动操作方类型
     */
    private EcologyPoolTypeEnum poolType;

    /**
     * 操作类型
     */
    private EcologyPoolOperationTypeEnum operationType;

    /**
     * 流水类型
     */
    private EcologyPoolFlowTypeEnum flowType;

    /**
     * 被动操作方类型
     */
    private EcologyPoolTypeEnum sourcePoolType;

    /**
     * 被动操作方品牌id
     */
    private Long sourceDaoId;

    /**
     * 被动操作方用户id
     */
    private Long sourceUserId;

    /**
     * 被动操作方关联id
     */
    private Long sourceRelationId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 事务ID
     */
    private String transactionUuid;

    /**
     * 主动操作方
     */
    private String activeOperatorName;

    /**
     * 被动操作方
     */
    private String passiveOperatorName;


}
